package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 订单 商家拒单，接收数据的 dto
 */
@Data
@ApiModel(value = "OrdersRejectionDTO", description = "拒单，接收数据的模型")
public class OrdersRejectionDTO implements Serializable {

    //订单id
    @ApiModelProperty(value = "订单id")
    @NotNull(message = "订单id为空")
    private Long id;

    //订单拒绝原因
    @ApiModelProperty(value = "商家拒单原因")
    private String rejectionReason;

}
